package com.anjubao.parking.municipal.parkinglot.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author anjubao
 */
@ApiModel(value = "SnapshotsDto", description = "车辆进出图片信息")
@Data
@ToString
@Accessors(chain = true)
public class SnapshotsDto implements Serializable {

    /**
     * 图片URL路径
     */
    @NotBlank(message = "图片存储路径不能为空")
    @ApiModelProperty(value = "图片存储路径", required = true)
    private String snapshotUrl;

    /**
     * 类型： 1：入场图片，2：出场图片
     */
    @NotNull(message = "图片类型不能为空")
    @ApiModelProperty(value = "图片类型:1.出场 2.进场", required = true)
    private Integer type;

}
